package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProject;
import com.zzyl.entity.ProjectPlans;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    List<NursingPlan> selectNursingPlans();

    void insertNursingPlan(NursingPlan nursingPlan);

    void updateNursingPlan(NursingPlan nursingPlan);

    void deleteNursingPlan(@Param("id") Long id);

    Page<NursingPlan> selectByPage(String name, Integer status);

    NursingPlan selectById(Integer id);

    void able(Long id, Integer status);

    void insertProjectPlan(List<ProjectPlans> projectPlans);

    void deleteAllProPlan(Long id);
}
